package animal;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Dog extends Animal{
    public Dog(int age, String name) {
        super(age, name);
    }
    public void bark (){
        System.out.println(super.name+"喜欢狗叫");
    }
    @Override
    public void eat (){
        System.out.println(super.name+"喜欢吃狗粮");
    }
}
